package suncertify.db;

/**
 * Thrown when an attempt is made change the database in a way that two records have the same 'name' and 'location'
 * field values. This attempt could happen when a new record is about to be added or when an existing record is about to
 * be changed. All records in the database must have a unique name and location combination.
 */
public class DuplicateKeyException extends Exception {

    /**
     * Automatically generated serialization version ID.
     */
    private static final long serialVersionUID = -6689165809485807888L;

    /**
     * Constructs the class without parameters.
     */
    public DuplicateKeyException() {

    }

    /**
     * Constructs the class with the specified message.
     * 
     * @param message
     *            The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
     */
    public DuplicateKeyException(String message) {
	super(message);

    }
}
